package com.zmkm.project.dbserver.controller;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.zmkm.project.dbserver.service.IBuildHourseService;
import com.zmkm.project.dbserver.utils.ResultMessage;

/**
 * 
 * 〈一句话功能简述〉
 * 〈功能详细描述〉
 * 
 * @author siddpc
 * @version [版本号, 2019年4月6日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@RestController
@RequestMapping(value = "/buildHourse")
public class BuildHourseController {
    /** 日志记录器 */
    private static final Logger LOGGER =
        LoggerFactory.getLogger(BuildHourseController.class);
    
    @Autowired
    private IBuildHourseService buildHourseService;
    
    /**
     * 
     * 〈一句话功能简述〉
     * 〈功能详细描述〉根据房子查询房东，房间的详细信息
     * 
     * @see [类、类#方法、类#成员]
     */
    @RequestMapping(method = RequestMethod.GET, value = "findByParams")
    public void findByParams() {
        
    }
    
    @RequestMapping(method = RequestMethod.GET, value = "/save")
    @ResponseBody
    public ResultMessage save(@RequestBody String params,
        HttpServletRequest req) {
        LOGGER.debug("");
        ResultMessage msg = new ResultMessage();
        this.buildHourseService.toString();
        msg.setCode(1);
        return msg;
    }
}
